<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://beta.mamsy.ru/" />
<title>random_login-id</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">random_login-id</td></tr>
</thead><tbody>
<!--Выбор рандомного лоигна покупателя-->
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random()*10000000)</td>
	<td>array_random_index</td>
</tr>
<tr>
	<td>echo</td>
	<td>${array_random_index}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${array_random_index}+'@mailforspam.com'</td>
	<td>random_login</td>
</tr>
<tr>
	<td>echo</td>
	<td>${random_login}</td>
	<td></td>
</tr>
<!--Лоигн-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;id=input-login_mail&quot;)==true){nextMove=&quot;login&quot;} else {nextMove=&quot;exit&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_name</td>
	<td>${random_login}</td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_email</td>
	<td>${random_login}</td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_pass_</td>
	<td>111111</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_pass</td>
	<td>111111</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
